package com.shujia.day05;

class Demo{

    int a;
    int b;

    public Demo(){}

    public Demo(int a,int b){
        this.a = a;
        this.b = b;
    }

    public int sum(){
        return this.a + this.b;
    }


    public int sum(int a,int b){
        return a+b;
    }
}


public class Code03Test {
    public static void main(String[] args) {
        System.out.println(new Demo().sum(3, 4));
        System.out.println(new Demo(3, 4).sum());
    }
}
